package com.jtjrenren.android.taxi.passenger.core.order.place;

import com.jtjrenren.android.taxi.passenger.Constants;
import com.jtjrenren.android.taxi.passenger.bean.AddressInfo;
import com.jtjrenren.android.taxi.passenger.db.dao.AddressDao;
import com.jtjrenren.android.taxi.passenger.manger.AppManger;

import java.util.List;

/**
 * Created by wdl on 2016/9/20.
 */

public class PlaceChooseInteractorImpl implements PlaceChooseInteractor {
    @Override
    public List<AddressInfo> getHistory(String userID) {
        AddressDao dao = new AddressDao(AppManger.getInstance().getContext());
        List<AddressInfo> historyAddrs = dao.getAddrListByType(Constants.CONFIG_ADDR_TYPE_HISTORY);
        dao = null;
        return historyAddrs;
    }
}
